package com.yootk.boot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration   //等同于applicationContext.xml
public class ConfigBean {

    @Bean   //等同于<bean id="" class="">
    public RestTemplate getRestTemplate() {
        return new RestTemplate() ;
    }
}
